package com.mingqijia.gassafety.db.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 故障记录
 * @author guoliang.lao
 * @since 2022-08-09
 */

@Data
public class HistoryBrokenVO {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 最近一次上报时间
     */
    private Date latestTime;
    /**
     * 客户名称
     */
    private String name;
    /**
     * 设备ID
     */
    private String equipmentId;
    /**
     * 设备号
     */
    private String imei;
    /**
     * 设备名称
     */
    private String equipmentName;
    /**
     * 设备类型
     */
    private String equipmentType;
    /**
     * 设备来源，1-港华紫荆，0-默认
     */
    private Integer equipmentFrom;
    private String equipmentModel;
    private String equipmentManufacturer;
    /**
     * 设备位置
     */
    private String installationPosition;
    /**
     * 故障原因
     */
    private String brokenReason = "";

    /**
     * 户名
     */
    private String custName;
    /**
     * 户号
     */
    private String subsCode;
    /**
     * 户址
     */
    private String custAddress;
    /**
     * 户主手机号
     */
    private String custPhone;
    /**
     * 行业类型
     */
    private String industryType;
    /**
     * 安装地址
     */
    private String installationAddress;
    /**
     * 客户id
     */
    private Integer consumerId;

    /**
     * 用户id
     */
    private String memberId;
    /**
     * 联系人姓名
     */
    private String contactName;
    /**
     * 联系人手机号
     */
    private  String contactPhone;
    /**
     * 有电磁阀
     */
    private  Integer hasValve;
    /**
     * 报警持续时长
     */
    private  String warnDuration;
    /**
     * 处理时间
     */
    private Date appealTime;

    private String spId;

    @ApiModelProperty(value = "接收器状态 0-离线,1-正常")
    private Integer receiverStatus;

    @ApiModelProperty(value = "阀门状态 0-开 1-关")
    private Integer valveStatus;

    @ApiModelProperty(value = "电磁阀故障状态 0-否 1-是")
    private Integer brokenStatus;

    @ApiModelProperty(value = "电磁阀故障原因")
    private String brokenInfo;


    @ApiModelProperty("用户类型")
    private String custType;

    @ApiModelProperty(value = "用户类型")
    private String custTypeCode;


    private String phone;

    @ApiModelProperty(value = "工单编号")
    private String orderNo;

    @ApiModelProperty(value = "处理状态")
    private Integer applyStatus;

    @ApiModelProperty(value = "处理详情")
    private String appealResult;

    @ApiModelProperty(value = "工单完成时间")
    private Date orderCompleteTime;

    @ApiModelProperty(value = "工单完成时间")
    private Date orderCreatedTime;

    @ApiModelProperty(value = "处理状态")
    private Integer appealStatus;

    @ApiModelProperty(value = "处理人姓名")
    private String userName;

    @ApiModelProperty(value = "处理人账号")
    private String userAccount;

    @ApiModelProperty(value = "电磁阀id")
    private Integer valveInfoId;

    @ApiModelProperty(value = "检测类型")
    private String detectionType;
    @ApiModelProperty(value = "经纬度")
    private String lonLat;
    @ApiModelProperty(value = "通讯方式")
    private String communicationMode;
    @ApiModelProperty(value = "运营商")
    private String operators;
    /**
     * 报警时气体浓度
     */
    private int concentration;

    @ApiModelProperty(value = "信号强度")
    private Integer signal;
    /**
     * 实时设备上绑定的客户
     */
    private Integer latestConsumerId;

    /**
     * 工单id
     */
    private Long workorderId;

    /**
     * 组织编码
     */
    private String orgCode;

    /**
     * 客户地址
     */
    @ApiModelProperty(value = "客户地址")
    private String customerAddress;

    @ApiModelProperty(value = "报警设备数")
    private Integer alarmSum;
}
